package com.zhaotianhao.rentingservice.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author Z-7
 * @Date 2022/5/16
 */
@Data
@Accessors(chain = true)
public class RentDTO implements Serializable {
    /**
     * token
     */
    private String token;

    /**
     * 合同编号
     */
    private Long number;

    /**
     * 租客
     */
    private String renter;

    /**
     * 电话
     */
    private String phone;

    /**
     * 房源信息
     */
    private String message;

    /**
     * 房源类型
     */
    private Integer typeId;

    /**
     * 起租日期
     */
    @DateTimeFormat(pattern = "yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy/MM/dd",timezone = "GMT+8")
    private Date startRent;

    /**
     * 结束日期
     */
    @DateTimeFormat(pattern = "yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy/MM/dd",timezone = "GMT+8")
    private Date endRent;

    /**
     * 押付方式
     */
    private String oshitsukeType;

    /**
     * 押金
     */
    private Double deposit;

    /**
     * 租金
     */
    private Double rental;
}
